package com.huangzhao.gulimall.product.feign;

import com.huangzhao.gulimall.common.to.es.SkuEsModel;
import com.huangzhao.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "gulimall-search", path = "/search")
public interface SearchFeignService {

    /**
     * 保存商品上架信息
     *
     * @param skuEsModels
     * @return
     */
    @RequestMapping(value = "/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
